

cc.Class({
    extends: cc.Component,

    properties: {
        left_icon: cc.Sprite,
        gemstone_icon: cc.Sprite,
        gemstone_title1: cc.Label,
        gemstone_title2: cc.Label,
        people_Number: cc.Label,
        tip_text: cc.Label,
        All_select: cc.SpriteAtlas,
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},
    onEnable() {

    },
    init(_tipdata) {

        this.left_icon.getComponent(cc.Sprite).spriteFrame=this.All_select.getSpriteFrame(_tipdata.left_icon);
        this.gemstone_icon.getComponent(cc.Sprite).spriteFrame=this.All_select.getSpriteFrame(_tipdata.gemstone_icon);
        this.gemstone_title1.string=_tipdata.gemstone_title1;
        this.gemstone_title2.string=_tipdata.gemstone_title2;
        this.people_Number.string=_tipdata.people_Number;
        this.tip_text.string=_tipdata.tip_text;

    },

    start() {

    },
    close(){
        this.node.active=false;
    },

    // update (dt) {},
});
